import request from "@/utils/request"
import homeRequest from "@/utils/homeRequest"
import type {pageAndLimitInfo} from "@/types/homeTypes"

export const reqBannerList = ()=>{
    return request.get<any,any>("index.json?csrf_token=9f6871b8042af2743d6a0a234b0825e3&__timestamp=1683252102677&")
}

export const reqGoodsList = (parmas:pageAndLimitInfo)=>{
    return request.post<any,any>("/index/items.json?csrf_token=9f6871b8042af2743d6a0a234b0825e3",parmas)
}

export const reqCategoryData = (parmas:any)=>{
    return homeRequest.get<any,any>(`list.json?csrf_token=${parmas}`)
}

